Crate deno_ast

source ·

Modules§

Structs§

  • Options which can be adjusted when transpiling a module.
  • An implementation of swc’s Comments that implements Sync to support being used in multi-threaded code. This implementation is immutable and should you need mutability you may create a copy by converting it to an swc SingleThreadedComments.
  • Parsing diagnostic.
  • Parameters for parsing.
  • A parsed source containing an AST, comments, and possibly tokens.
  • Implements a configuration trait for source maps that reflects the logic to embed sources in the source map or not.
  • Swc unfortunately uses BytePos(0) as a magic value. This means that we can’t have byte positions of nodes line up with the text. To get around this, we have created our own SourcePos wrapper that hides the underlying swc byte position so it can’t be used incorrectly.
  • Stores the source text along with other data such as where all the lines occur in the text.
  • A special source pos that indicates the source start which functions can use as a parameter type in order to ensure someone doesn’t provide the wrong position.
  • Source transpiled based on the emit options.

Enums§

Constants§

  • Ecmascript version used for lexing and parsing.

Traits§

Functions§

Type Aliases§